package com.ruoyi.luban.domain.dto;

import javax.validation.constraints.NotBlank;

/**
 * @description:
 * @author: linjunzhu
 * @create: 2020-01-08 17:08
 **/
public class RegistAndBindUserDto {
    private String code;
    private String openid;
    private String unionid;
    private UserInfo userInfo;
    private String loginType;//
    // 微信个人信息的加密
    private String encryptedData;

    private String iv;
    // 微信小程序的 openId
    String maOpenId;
    // 微信小程序的 unionId
    String maUnionId;
    // 微信小程序的 unionId
    String maSessionKey;
    // 微信手机号的加密
    @NotBlank
    private String phoneEncryptedData;
    @NotBlank
    private String phoneIv;

    public static class UserInfo{
        public String nickName;
        public String avatarUrl;
        public String gender;
        public String country;
        public String province;
        public String city;
        public String language;

        public String getNickName() {
            return nickName;
        }

        public void setNickName(String nickName) {
            this.nickName = nickName;
        }

        public String getAvatarUrl() {
            return avatarUrl;
        }

        public void setAvatarUrl(String avatarUrl) {
            this.avatarUrl = avatarUrl;
        }

        public String getGender() {
            return gender;
        }

        public void setGender(String gender) {
            this.gender = gender;
        }

        public String getCountry() {
            return country;
        }

        public void setCountry(String country) {
            this.country = country;
        }

        public String getProvince() {
            return province;
        }

        public void setProvince(String province) {
            this.province = province;
        }

        public String getCity() {
            return city;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public String getLanguage() {
            return language;
        }

        public void setLanguage(String language) {
            this.language = language;
        }
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public String getEncryptedData() {
        return encryptedData;
    }

    public void setEncryptedData(String encryptedData) {
        this.encryptedData = encryptedData;
    }

    public String getIv() {
        return iv;
    }

    public void setIv(String iv) {
        this.iv = iv;
    }

    public String getPhoneEncryptedData() {
        return phoneEncryptedData;
    }

    public void setPhoneEncryptedData(String phoneEncryptedData) {
        this.phoneEncryptedData = phoneEncryptedData;
    }

    public String getPhoneIv() {
        return phoneIv;
    }

    public void setPhoneIv(String phoneIv) {
        this.phoneIv = phoneIv;
    }

    public String getLoginType() {
        return loginType;
    }

    public void setLoginType(String loginType) {
        this.loginType = loginType;
    }

    public String getMaOpenId() {
        return maOpenId;
    }

    public void setMaOpenId(String maOpenId) {
        this.maOpenId = maOpenId;
    }

    public String getMaUnionId() {
        return maUnionId;
    }

    public void setMaUnionId(String maUnionId) {
        this.maUnionId = maUnionId;
    }

    public String getMaSessionKey() {
        return maSessionKey;
    }

    public void setMaSessionKey(String maSessionKey) {
        this.maSessionKey = maSessionKey;
    }
}
